import request from "@/utils/request";

export default {
  //获取list
  list(id) {
    return request({
      url: `/campus/message/${id}`,
      headers: {
        isToken: true
      },
      method: 'get',
    })
  },
  del(data) {
    return request({
      url: `/campus/delMessage`,
      headers: {
        isToken: true
      },
      method: 'post',
      data,
    })
  },
  addMessage(data) {
    return request({
      url: `/campus/addMessage`,
      headers: {
        isToken: true
      },
      method: 'post',
      data,
    })
  }
}
